<script setup>
import { useTalkStore } from "../store/loveTalk";
const talkStore = useTalkStore()
</script>

<template>
  <section style="border: 1px solid #eee; padding: 16px;">
    <h2>土味情话</h2>
    <button @click="talkStore.addRandomWord">电击获取一条土味情话</button>
    <ul style="margin-top: 16px;">
      <li v-for="(item, idx) in talkStore.loveWords" :key="idx">{{ item }}</li>
    </ul>
  </section>
</template>